//
// Created by liule on 2021/8/12.
//

#ifndef TANCHISHE_SNAKE_H
#define TANCHISHE_SNAKE_H

#include "stdlib.h"
#include "stdio.h"
#include "Wall.h"

#include <iostream>
#include <string>

using namespace std;

class Snake {

private:
    Wall *wall;

    void destorySnake();

public:
    struct Point {
        int x;
        int y;

        Point *next;
    };

    Point *pHead;

    Snake(Wall *wall);
    ~Snake();

    void addPoint(int x, int y);
    void deleteEndPoint();


};


#endif //TANCHISHE_SNAKE_H
